package 笔试.字节;

/**
 * @author:谢君臣
 * @Date:2021/10/10-17:19
 * @version:1.0
 * @function:
 */
public class Main10101 {
    public static void main(String[] args) {

    }
    int function(int [] arr){
        int count =0;
        for (int i = 0; i < arr.length - 2; i++) {
            for (int j = i; j < arr.length; j++) {
                if (arr[j]>arr[i])count++;
            }
        }
       return count;
    }
}
